package sspersonserver.db;

/**
 * Created by IntelliJ IDEA.
 * User: Double
 * Date: 30.01.12
 * Time: 14:32
 * To change this template use File | Settings | File Templates.
 */
public class DatabaseFactory
{
	public static IDB getDatabase(String databaseType)
	{
		IDB iDB = null;
		if(databaseType.equalsIgnoreCase("mysql"))
		{
			iDB = new MySQLDB();
		}
		else if(databaseType.equalsIgnoreCase("mockdb"))
		{
			iDB = new MockDB();
		}
		return iDB;
	}
}
